<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        var strTest='13718323231'
        var intPos=strTest.indexOf('气',0)
        console.log(intPos)
        var strSub=strTest.substring(intPos+1,intPos+3)
        console.log(strSub)
        var strSub=strTest.substr(intPos+1,2)
        console.log(strSub)
        var strSub=strTest.substring(5,2)
        console.log(strSub)
        var arrStr=strTest
        console.log(arrStr.slice(4,7))
    </script>
</body>
</html>